home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-
- <!DOCTYPE window SYSTEM "chrome://stumbleupon/locale/stumbleupon.dtd" >
-
- <dialog id="stumble_favs_download_dialog" title="StumbleUpon Download"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- buttons="accept"
- onload="init()">
-
- <stringbundleset id="stringbundleset">
- <stringbundle id="bundle_stumble" src="chrome://stumbleupon/locale/stumbleupon.properties"/>
- </stringbundleset>
-
- <script type="application/x-javascript">
- <![CDATA[
-
- var detail;
- function init()
- {
- var str;
- var el;
- detail = window.arguments[0];
- var browser_label = (detail && detail.browser_label) ? detail.browser_label : "the browser";
-
- str = "Please wait while " + browser_label + " makes a backup of your bookmarks ...";
- el = document.getElementById("wait");
- el.textContent = str;
-
- str = "It's okay to close " + browser_label + " before the download completes. It will resume when you reopen the browser.";
- el = document.getElementById("info");
- el.textContent = str;
-
- el = document.getElementById("stumble_favs_download_dialog")
- el.getButton("accept").disabled = true;
-
- setTimeout(start, 500);
- }
-
- function start()
- {
- var start_time = (new Date()).getTime();
-
- try {
- setCursor("wait");
- } catch (e) {}
-
- opener.setTimeout(function (parent) { parent.su_download_favs(true); }, 0, opener);
-
- if (! opener.su_ds.getValue("#migrating_places"))
- opener.su_backup_places("DOWNLOADFAVS BACKUP");
-
- var interval = ((new Date()).getTime()) - start_time;
-
- var delay = (interval < 2500) ? (2500 - interval) : 0;
-
- setTimeout(enable, delay);
- }
-
- function enable()
- {
- try {
- setCursor("auto");
- } catch (e) {}
-
- var str;
- var el;
-
- el = document.getElementById("phase");
- el.selectedIndex = 1;
-
- el = document.getElementById("info");
- el.style.color = "black";
-
- el = document.getElementById("stumble_favs_download_dialog")
- el.getButton("accept").disabled = false;
- }
-
- ]]>
- </script>
-
-
- <spacer height="10px"/>
- <hbox>
- <vbox>
- <image class="message-icon" />
- </vbox>
- <vbox height="100px">
- <description style="width:300px;font-weight:bold;font-size:large;">Starting favorites download</description>
- <spacer height="20px"/>
- <deck id="phase">
- <description id="wait" style="width:300px;font-weight:bold;"></description>
- <description style="width:300px;font-weight:bold;">Download started</description>
- </deck>
- <spacer height="40px"/>
- <description id="info" style="width:300px;color:#808080;" disabled="true"></description>
- </vbox>
- </hbox>
- <spacer height="10px"/>
- </dialog>
-